org.jhotdraw.draw
Class PerpendicularBar
java.lang.Object
org.jhotdraw.draw.AbstractLineDecoration
org.jhotdraw.draw.PerpendicularBar
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, LineDecoration, DOMStorable
public class PerpendicularBar
- extends AbstractLineDecoration
- implements DOMStorable
A LineDecoration which draws a perpendicular bar.
- Author:
- Huw Jones
- See Also:
- Serialized Form
|
Field Summary |
private double |
height
|
|
Constructor Summary |
PerpendicularBar()
Constructs a perpendicular line with a height of 10. |
PerpendicularBar(double height)
Constructs a perpendicular line with the given height. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
height
private double height
PerpendicularBar
public PerpendicularBar()
- Constructs a perpendicular line with a height of 10.
PerpendicularBar
public PerpendicularBar(double height)
- Constructs a perpendicular line with the given height.
getDecoratorPath
protected java.awt.geom.GeneralPath getDecoratorPath(Figure f)
- Calculates the path of the decorator...a simple line
perpendicular to the figure.
- Specified by:
getDecoratorPath in class AbstractLineDecoration
getDecoratorPathRadius
protected double getDecoratorPathRadius(Figure f)
- Calculates the radius of the decorator path.
- Specified by:
getDecoratorPathRadius in class AbstractLineDecoration
read
public void read(DOMInput in)
- Specified by:
read in interface DOMStorable
write
public void write(DOMOutput out)
- Specified by:
write in interface DOMStorable